package com.xhu.water_supply.mapper;

import com.xhu.water_supply.entity.Worker;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface WorkerMapper extends Mapper<Worker> {

    public Boolean add(Worker worker);

    public Boolean del(int id);

    public Boolean edit(Worker worker);

    public List<Worker> findAll();

    public  Worker findOne(int id);

    public List<Worker> findName(String name);
}